import { defineConfig } from "vite";
import UnoCSS from 'unocss/vite'
import path from 'node:path'
import vue from "@vitejs/plugin-vue";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), UnoCSS()],
  resolve: {
    alias: {
      "@": path.join(__dirname, "src"), // 配置目录别名
      "~": path.join(__dirname, "src/assets"),
    },
  },
});
